import request from '../axios'

/**
 * 添加对方账户信息
 */
export function add(data) {
    return request({
        url: 'transfer/add',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * 转账好友
 */
export function transferfriend(data) {
    return request({
        url: 'transfer/transferfriend',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * 通过手机号获取用户id
 */
export function getuserid(data) {
    return request({
        url: 'transfer/getuserid',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}
